﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ProductInfoList.aspx.cs" Inherits="admin_ProductInfoList" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>无标题页</title>
    <base target="_self"></base>
        <link rel="Stylesheet" type="text/css" href="../Styles/right_style.css" />
    <script type="text/javascript" src="../Scripts/jquery.ui/js/jquery.js"></script>

    <style type="text/css">
        <!--
        html{ scrollbar-base-color: #dbecf8; scrollbar-arrow-color: #2a8ed1; scrollbar-track-color: #bdddf2; scrollbar-3dlight-color: #2886c5; scrollbar-darkshadow-color: #2886c5;
        scrollbar-face-color: #dbecf8; scrollbar-shadow-color: #dbecf8;  }
        -->
        </style>

</head>
<%     
        Response.Buffer = true;
        Response.ExpiresAbsolute = System.DateTime.Now.AddSeconds(-1);
        Response.Expires = 0;
        Response.CacheControl = "no-cache";   
%>
<body>
    <form id="form1" runat="server">
            <div class="sub_right_top">
  <div class="hdm_header" >
    <div class="tb1_on"><h2 class="h2_icon"> 产品信息查询</h2></div>

    <div class="clear"></div>
  </div>
  <div class="hdm_footer">
    <div style="height:13px; overflow:hidden;"></div>                
    
<asp:GridView ID="GridView1" runat="server" AllowPaging="True" AutoGenerateColumns="False"
                         BorderColor="#77ACD0" HorizontalAlign="Center" BorderWidth="1px"
                        DataKeyNames="ProductId" GridLines="Horizontal" EmptyDataText="没有找到符合的数据！" OnPageIndexChanging="GridView1_PageIndexChanging" OnRowCommand="GridView1_RowCommand"  Width="99%">
                        <FooterStyle BackColor="#B5C7DE" ForeColor="#4A3C8C" />
                        <Columns>
                            <asp:BoundField DataField="ProductName" HeaderText="产品名称">
                                <HeaderStyle CssClass="itemhead" />
                            </asp:BoundField>
                            <asp:BoundField DataField="ProductType" HeaderText="产品型号">
                                <HeaderStyle CssClass="itemhead" />
                            </asp:BoundField>
                            <asp:BoundField DataField="Computation" HeaderText="计量单位" >
                                <HeaderStyle CssClass="itemhead" />
                            </asp:BoundField>
                            <asp:BoundField DataField="CostPrice" HeaderText="成本价" >
                                <HeaderStyle CssClass="itemhead" />
                            </asp:BoundField>
                            <asp:BoundField DataField="SalePrice" HeaderText="出售价">
                                <HeaderStyle CssClass="itemhead" />
                            </asp:BoundField>
                            <asp:TemplateField HeaderText="供应商">
                                <ItemTemplate>
                                    <asp:LinkButton ID="LinkButton1" runat="server" CommandArgument='<%# Eval("Supply.SupplyId") %>'
                                        Text='<%# Eval("Supply.SupplyName") %>' CommandName="showSupply"></asp:LinkButton>
                                </ItemTemplate>
                                <HeaderStyle CssClass="itemhead" />
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="产品描述">
                                <ItemTemplate>
                                    <asp:Label ID="Label2" runat="server" Text='<%# Eval("Description") %>'></asp:Label>
                                </ItemTemplate>
                                <HeaderStyle CssClass="itemhead" />
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="操作">
                                <ItemTemplate>
                                    <asp:LinkButton ID="LinkButton2" runat="server" CommandArgument='<%# Eval("ProductId") %>' CommandName="showInfo">详情</asp:LinkButton>
                                </ItemTemplate>
                                <HeaderStyle CssClass="itemhead" />
                            </asp:TemplateField>
                        </Columns>
                        <RowStyle BackColor="Transparent" ForeColor="Black" HorizontalAlign="Center" />
                                    <SelectedRowStyle BackColor="#738A9C" Font-Bold="True" ForeColor="#F7F7F7" />
                                    <PagerStyle BackColor="#E4F1FD" ForeColor="#1E5494" HorizontalAlign="Right" />
                                    <HeaderStyle BackColor="#E4F1FD" Font-Bold="True" ForeColor="#1E5494" BorderColor="#77ACD0" HorizontalAlign="Center"/>
                                    <AlternatingRowStyle BackColor="#E4F1FD" />
                    </asp:GridView>
                    <asp:Button ID="btnBack" runat="server" PostBackUrl="~/admin/FindProductInfo.aspx"
                        Text="" CssClass="forum_but"/>
    <div style="height:15px; overflow:hidden;"></div>
  </div>
</div>

    </form>
</body>
</html>
